package com.kingdee.eas.xr;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.base.permission.UserInfo;
import com.kingdee.jdbc.rowset.IRowSet;
import java.util.List;
import java.util.HashSet;



public abstract class AbstractPublicSQLFacadeControllerBean extends AbstractBizControllerBean implements PublicSQLFacadeController
{
    protected AbstractPublicSQLFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("524EF490");
    }

    public void executeSQLNoResult(Context ctx, String sql, List params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("bdb73e2f-7d2b-47ba-a4e7-b48df0e8dd94"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            _executeSQLNoResult(ctx, sql, params);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _executeSQLNoResult(Context ctx, String sql, List params) throws BOSException
    {    	
        return;
    }

    public IRowSet getRowSet(Context ctx, String sql, Object[] params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("439d9f25-40eb-44dd-9b5d-772950b69cb1"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getRowSet(ctx, sql, params);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getRowSet(Context ctx, String sql, Object[] params) throws BOSException
    {    	
        return null;
    }

    public IRowSet executeQueryRH(Context ctx, String sql, Object[] params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a5aed221-43a1-4098-a93d-c3452e80caa3"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_executeQueryRH(ctx, sql, params);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _executeQueryRH(Context ctx, String sql, Object[] params) throws BOSException
    {    	
        return null;
    }

    public IRowSet getBonusPermissions(Context ctx, String adminOrgUnitID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5059cc71-e425-4334-bbb0-5f90ae226d9c"), new Object[]{ctx, adminOrgUnitID});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getBonusPermissions(ctx, adminOrgUnitID);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getBonusPermissions(Context ctx, String adminOrgUnitID) throws BOSException
    {    	
        return null;
    }

    public IRowSet getBonusPermissionsByDept(Context ctx, String summaryOrgId) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3d6b12af-5524-4d09-9f3f-faa15e025c9c"), new Object[]{ctx, summaryOrgId});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getBonusPermissionsByDept(ctx, summaryOrgId);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getBonusPermissionsByDept(Context ctx, String summaryOrgId) throws BOSException
    {    	
        return null;
    }

    public IRowSet getSummaryOrgs(Context ctx, String adminUnitOrgId, String positionNumber) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b9ef35df-434a-4753-bc6d-ae0049267ec4"), new Object[]{ctx, adminUnitOrgId, positionNumber});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getSummaryOrgs(ctx, adminUnitOrgId, positionNumber);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getSummaryOrgs(Context ctx, String adminUnitOrgId, String positionNumber) throws BOSException
    {    	
        return null;
    }

    public IRowSet getSectorPMPoint(Context ctx, String cycle, boolean onlyImportOrg) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7b86893d-b79b-4328-97ae-f8f50b74409a"), new Object[]{ctx, cycle, new Boolean(onlyImportOrg)});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getSectorPMPoint(ctx, cycle, onlyImportOrg);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getSectorPMPoint(Context ctx, String cycle, boolean onlyImportOrg) throws BOSException
    {    	
        return null;
    }

    public HashSet getUserBonusOrgRange(Context ctx, UserInfo userInfo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("51f998d6-cfd6-4d08-a9f2-b06b733271e3"), new Object[]{ctx, userInfo});
            invokeServiceBefore(svcCtx);
            HashSet retValue = (HashSet)_getUserBonusOrgRange(ctx, userInfo);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected HashSet _getUserBonusOrgRange(Context ctx, UserInfo userInfo) throws BOSException, EASBizException
    {    	
        return null;
    }

    public String addMonthsForCycle(Context ctx, int addedMonths, String sourceCycle, boolean isForParams) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c8f84af2-321a-4415-8f7b-647a77867cf3"), new Object[]{ctx, new Integer(addedMonths), sourceCycle, new Boolean(isForParams)});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_addMonthsForCycle(ctx, addedMonths, sourceCycle, isForParams);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _addMonthsForCycle(Context ctx, int addedMonths, String sourceCycle, boolean isForParams) throws BOSException, EASBizException
    {    	
        return null;
    }

    public HashSet getuserorgrange(Context ctx, UserInfo userInfo) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fa791eae-12a3-478e-ad9c-2bc2c0f25f0b"), new Object[]{ctx, userInfo});
            invokeServiceBefore(svcCtx);
            HashSet retValue = (HashSet)_getuserorgrange(ctx, userInfo);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected HashSet _getuserorgrange(Context ctx, UserInfo userInfo) throws BOSException, EASBizException
    {    	
        return null;
    }

}